using System;
using System.Collections.Generic;
using System.Text;

namespace LngT.Interfaces.DBUserRoles
    {
    [Serializable]
    public class DBUserRoleBase: IDBUserRole
        {
        protected IDBUserRole _next;
        public DBUserRoleBase( IDBUserRole next )
            {
            _next = next;
            }

        public virtual bool CanAddItem()
            {
            if( _next != null )
                return _next.CanAddItem();
            else
                return false;
            }

        public virtual bool CanRemoveItem()
            {
            if( _next != null )
                return _next.CanRemoveItem();
            else
                return false;
            }

        public virtual bool CanUpdateItem()
            {
            if( _next != null )
                return _next.CanUpdateItem();
            else
                return false;
            }

        public virtual bool CanIterate()
            {
            if( _next != null )
                return _next.CanIterate();
            else
                return false;
            }

        public virtual bool CanAddItemResults()
            {
            if( _next != null )
                return _next.CanAddItemResults();
            else
                return false;
            }

        public virtual bool CanGetItem()
            {
            if( _next != null )
                return _next.CanGetItem();
            else
                return false;
            }

        public virtual bool CanAddUsers()
            {
            if( _next != null )
                return _next.CanAddUsers();
            else
                return false;
            }

        public virtual bool CanRemoveUsers()
            {
            if( _next != null )
                return _next.CanRemoveUsers();
            else
                return false;
            }

        public virtual bool CanGetUserList()
            {
            if( _next != null )
                return _next.CanGetUserList();
            else
                return false;
            }

        public virtual bool CanChangeUserPrivileges()
            {
            if( _next != null )
                return _next.CanChangeUserPrivileges();
            else
                return false;
            }
        }
    }
